<template>
  <div class='container'>
    <van-nav-bar class="page-container"
                 :title="this.title[this.index]"
                 left-arrow
                 @click-left="back"
                 fixed>
    </van-nav-bar>

    <p>{{this.contents[this.index]}}</p>
  </div>
</template>

<script>
export default {
  name: 'questionDetail',
  components: {},
  props: {
    title: {
      type: Array,
      required: true,
    },
    contents: {
      type: Array,
      required: true
    },
    index: {
      type: Number,
      required: true
    },
  },
  data () {
    return {

    }
  },
  computed: {},
  methods: {
    back () {
      this.$router.back()
      this.$emit('back', true)
    }
  },
}
</script>

<style lang="less" scoped>
.container {
  p {
    margin-top: 45px;
  }
}
</style>
